# -*- coding: utf-8 -*-
from __future__ import unicode_literals

from django.db import migrations, models


class Migration(migrations.Migration):

    dependencies = [
    ]

    operations = [
        migrations.CreateModel(
            name='BoothImage',
            fields=[
                ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
                ('is_valid', models.BooleanField(default=True, verbose_name='\u6709\u6548\u6027')),
                ('is_deleted', models.BooleanField(default=False, verbose_name='\u662f\u5426\u88ab\u5220\u9664')),
                ('image_path', models.CharField(max_length=50, verbose_name='\u56fe\u7247\u8def\u5f84')),
                ('image_net_path', models.CharField(max_length=100, verbose_name='\u56fe\u7247\u7f51\u7edc\u8def\u5f84')),
            ],
            options={
                'abstract': False,
            },
        ),
        migrations.CreateModel(
            name='Color',
            fields=[
                ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
                ('is_valid', models.BooleanField(default=True, verbose_name='\u6709\u6548\u6027')),
                ('is_deleted', models.BooleanField(default=False, verbose_name='\u662f\u5426\u88ab\u5220\u9664')),
                ('color_name', models.CharField(max_length=50, verbose_name='\u989c\u8272\u540d\u79f0')),
                ('color_another_name', models.CharField(max_length=50, verbose_name='\u989c\u8272\u522b\u540d')),
            ],
            options={
                'abstract': False,
            },
        ),
        migrations.CreateModel(
            name='DetailImage',
            fields=[
                ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
                ('is_valid', models.BooleanField(default=True, verbose_name='\u6709\u6548\u6027')),
                ('is_deleted', models.BooleanField(default=False, verbose_name='\u662f\u5426\u88ab\u5220\u9664')),
                ('image_path', models.CharField(max_length=50, verbose_name='\u56fe\u7247\u8def\u5f84')),
                ('image_net_path', models.CharField(max_length=100, verbose_name='\u56fe\u7247\u7f51\u7edc\u8def\u5f84')),
            ],
            options={
                'abstract': False,
            },
        ),
        migrations.CreateModel(
            name='Inventory',
            fields=[
                ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
                ('is_valid', models.BooleanField(default=True, verbose_name='\u6709\u6548\u6027')),
                ('is_deleted', models.BooleanField(default=False, verbose_name='\u662f\u5426\u88ab\u5220\u9664')),
                ('inventory_count', models.IntegerField(verbose_name='\u6bcf\u4e2asku\u7684\u5e93\u5b58\u6570\u91cf')),
                ('color', models.ForeignKey(to='spider.Color')),
            ],
            options={
                'abstract': False,
            },
        ),
        migrations.CreateModel(
            name='ListImage',
            fields=[
                ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
                ('is_valid', models.BooleanField(default=True, verbose_name='\u6709\u6548\u6027')),
                ('is_deleted', models.BooleanField(default=False, verbose_name='\u662f\u5426\u88ab\u5220\u9664')),
                ('image_path', models.CharField(max_length=50, verbose_name='\u56fe\u7247\u8def\u5f84')),
                ('image_net_path', models.CharField(max_length=100, verbose_name='\u56fe\u7247\u7f51\u7edc\u8def\u5f84')),
            ],
            options={
                'abstract': False,
            },
        ),
        migrations.CreateModel(
            name='Product',
            fields=[
                ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
                ('is_valid', models.BooleanField(default=True, verbose_name='\u6709\u6548\u6027')),
                ('is_deleted', models.BooleanField(default=False, verbose_name='\u662f\u5426\u88ab\u5220\u9664')),
                ('created_time', models.DateTimeField(auto_now_add=True, verbose_name='\u521b\u5efa\u65f6\u95f4')),
                ('modified_time', models.DateTimeField(auto_now=True, verbose_name='\u4fee\u6539\u65f6\u95f4')),
                ('product_name', models.CharField(max_length=50, verbose_name='\u4ea7\u54c1\u540d\u79f0')),
                ('product_displayed_name', models.CharField(default=b'', max_length=50, verbose_name='\u5c55\u793a\u7684\u4ea7\u54c1\u540d\u79f0')),
                ('product_url', models.CharField(max_length=100, verbose_name='\u4ea7\u54c1\u7f51\u7ad9')),
                ('product_price', models.FloatField(verbose_name='\u5546\u54c1\u4ef7\u683c')),
                ('product_displayed_price', models.FloatField(null=True, verbose_name='\u5546\u54c1\u4ef7\u683c')),
                ('product_count', models.IntegerField(default=0, verbose_name='\u5546\u54c1\u603b\u5e93\u5b58')),
                ('is_crawled_detail', models.BooleanField(default=False, verbose_name='\u662f\u5426\u722c\u53d6\u5546\u54c1\u7ec6\u8282')),
                ('is_publish', models.BooleanField(default=False, verbose_name='\u662f\u5426\u53d1\u5e03')),
            ],
            options={
                'abstract': False,
            },
        ),
        migrations.CreateModel(
            name='Shop',
            fields=[
                ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
                ('is_valid', models.BooleanField(default=True, verbose_name='\u6709\u6548\u6027')),
                ('is_deleted', models.BooleanField(default=False, verbose_name='\u662f\u5426\u88ab\u5220\u9664')),
                ('created_time', models.DateTimeField(auto_now_add=True, verbose_name='\u521b\u5efa\u65f6\u95f4')),
                ('modified_time', models.DateTimeField(auto_now=True, verbose_name='\u4fee\u6539\u65f6\u95f4')),
                ('shop_name', models.CharField(max_length=50, verbose_name='\u5546\u5e97\u540d\u79f0')),
                ('shop_url', models.CharField(max_length=100, verbose_name='\u5546\u5e97\u7f51\u5740')),
            ],
            options={
                'abstract': False,
            },
        ),
        migrations.CreateModel(
            name='Size',
            fields=[
                ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
                ('is_valid', models.BooleanField(default=True, verbose_name='\u6709\u6548\u6027')),
                ('is_deleted', models.BooleanField(default=False, verbose_name='\u662f\u5426\u88ab\u5220\u9664')),
                ('size_name', models.CharField(max_length=50, verbose_name='\u5c3a\u5bf8\u540d\u79f0')),
                ('size_another_name', models.CharField(max_length=50, verbose_name='\u5c3a\u5bf8\u522b\u540d')),
                ('product', models.ForeignKey(to='spider.Product')),
            ],
            options={
                'abstract': False,
            },
        ),
        migrations.AddField(
            model_name='product',
            name='shop',
            field=models.ForeignKey(to='spider.Shop'),
        ),
        migrations.AddField(
            model_name='listimage',
            name='product',
            field=models.ForeignKey(to='spider.Product'),
        ),
        migrations.AddField(
            model_name='inventory',
            name='product',
            field=models.ForeignKey(to='spider.Product'),
        ),
        migrations.AddField(
            model_name='inventory',
            name='size',
            field=models.ForeignKey(to='spider.Size'),
        ),
        migrations.AddField(
            model_name='detailimage',
            name='product',
            field=models.ForeignKey(to='spider.Product'),
        ),
        migrations.AddField(
            model_name='color',
            name='product',
            field=models.ForeignKey(to='spider.Product'),
        ),
        migrations.AddField(
            model_name='boothimage',
            name='product',
            field=models.ForeignKey(to='spider.Product'),
        ),
    ]
